<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      color: red;
    }
    p{
      color: blue !important; /* important提升当前样式优先级最高 */
    }
    #p1{
      color: green;
    }


  </style>
</head>
<body>
<p id="p1">p1</p>
<div>
  div
  <p>p2</p>
  <span>span</span>
  <a href="">超链接</a>
</div>

</body>
</html>